<div class = "main-view"><!--最外层div-->
    <div class="left-margin top-margin"><strong class="am-text-primary am-text-lg">复核日志</strong></div>
    <script>

        var fromDate = $('#startDateSelect').datepicker().on('changeDate', function (ev) {
            $scope.startDateSelect = ev.date.format('yyyy-MM-dd');
            $("#startDateSelect").val(ev.date.format('yyyy-MM-dd'));
        });

        var toDate = $('#endDateSelect').datepicker().on('changeDate', function (ev) {
            $scope.endDateSelect = ev.date.format('yyyy-MM-dd');
            $("#endDateSelect").val(ev.date.format('yyyy-MM-dd'));
        });
    </script>
    <form class="am-form-inline left-margin top-margin" role="form">
        <div class="am-form-group">
            <label class="left-margin">下单开始日期:</label>
            <input type="text" id="startDateSelect" ng-model="start" class="modal-input" size="16" data-date-format="yyyy-mm-dd">
            <label class="left-margin">下单结束日期：</label>
            <input type="text" id="endDateSelect"  ng-model="end" class="modal-input" size="16" data-date-format="yyyy-mm-dd">
        </div>

        <label class="left-margin">复核状态:</label>
        <select ng-model="errorStatus">
            <option value=''>-- 请选择 --</option>
            <option value=1>部分错误</option>
            <option value=2>没有错误</option>
        </select>

        <button id="search-target" data-am-modal="{target: '#loading'}" type="submit" class="am-btn am-btn-primary left-margin" ng-click="search()" data-target="cascad-search">搜索</button>

    </form>
    <br>

    <div id = "pagination" class = "pagination"></div>
    <div class="pagination-table left-margin" id="tab_menu" style = "margin-top: 0px;">
        <form class="am-form">
            <table class="am-table-striped am-table-hover table-main">
                <thead>
                <tr>
                    <!--                    <th class="table-check"><input type="checkbox" ng-click="allSelected()"></th>-->
                    <th class="table-title">订单ID</th>
                    <th class="table-title">下单时间</th>
                    <th class="table-title">复核时间</th>
                    <th class="table-title">对比结果</th>
                    <th class="table-title">是否有错</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="mtOrder in mtOrderList" id = "{{mtOrder._id}}">
                    <td>{{mtOrder.order_id}}</td>
                    <td>{{mtOrder.order_date}}</td>
                    <td>{{mtOrder.log_date}}</td>
                    <td>{{mtOrder.compare}}</td>
                    <td>{{mtOrder.is_error? '是':'否'}}</td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>

    <div class = "left-margin">共<span id = 'page_number'>{{pageNumber}}</span>页 <span>{{count}}条数据</span></div>

</div>